package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AApprovalRequestsMapper;
import com.ruoyi.system.domain.AApprovalRequests;
import com.ruoyi.system.service.IAApprovalRequestsService;

/**
 * 审批请求Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-02
 */
@Service
public class AApprovalRequestsServiceImpl implements IAApprovalRequestsService 
{
    @Autowired
    private AApprovalRequestsMapper aApprovalRequestsMapper;

    /**
     * 查询审批请求
     * 
     * @param id 审批请求主键
     * @return 审批请求
     */
    @Override
    public AApprovalRequests selectAApprovalRequestsById(Long id)
    {
        return aApprovalRequestsMapper.selectAApprovalRequestsById(id);
    }

    /**
     * 查询审批请求列表
     * 
     * @param aApprovalRequests 审批请求
     * @return 审批请求
     */
    @Override
    public List<AApprovalRequests> selectAApprovalRequestsList(AApprovalRequests aApprovalRequests)
    {
        return aApprovalRequestsMapper.selectAApprovalRequestsList(aApprovalRequests);
    }

    /**
     * 新增审批请求
     * 
     * @param aApprovalRequests 审批请求
     * @return 结果
     */
    @Override
    public int insertAApprovalRequests(AApprovalRequests aApprovalRequests)
    {
        return aApprovalRequestsMapper.insertAApprovalRequests(aApprovalRequests);
    }

    /**
     * 修改审批请求
     * 
     * @param aApprovalRequests 审批请求
     * @return 结果
     */
    @Override
    public int updateAApprovalRequests(AApprovalRequests aApprovalRequests)
    {
        return aApprovalRequestsMapper.updateAApprovalRequests(aApprovalRequests);
    }

    /**
     * 批量删除审批请求
     * 
     * @param ids 需要删除的审批请求主键
     * @return 结果
     */
    @Override
    public int deleteAApprovalRequestsByIds(Long[] ids)
    {
        return aApprovalRequestsMapper.deleteAApprovalRequestsByIds(ids);
    }

    /**
     * 删除审批请求信息
     * 
     * @param id 审批请求主键
     * @return 结果
     */
    @Override
    public int deleteAApprovalRequestsById(Long id)
    {
        return aApprovalRequestsMapper.deleteAApprovalRequestsById(id);
    }
}
